package o;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

public class djh {
    private static Map<String, Boolean> ˋ = new HashMap();
    private static Map<String, Integer> ˎ = new HashMap();
    private static final List<String> ˏ = new ArrayList();
    private static djh ॱ = new djh();

    public static djh ˎ() {
        return ॱ;
    }

    public static void ˏ(String str) {
        ˏ.add(str);
    }

    public static List<String> ˋ() {
        return ˏ;
    }

    public void ॱ(String str, int i) {
        if (!dof.ˋ(str)) {
            ˎ.put(str, Integer.valueOf(i));
        }
    }

    public void ˊ(String str) {
        if (!dof.ˋ(str)) {
            for (Entry value : ˋ.entrySet()) {
                value.setValue(Boolean.valueOf(false));
            }
            ˋ.put(str, Boolean.valueOf(true));
        }
    }

    public boolean ˎ(String str) {
        if (dof.ˋ(str) || !ˋ.containsKey(str)) {
            return false;
        }
        return ((Boolean) ˋ.get(str)).booleanValue();
    }

    public int ˋ(String str) {
        if (ˎ == null || dof.ˋ(str) || !ˎ.containsKey(str)) {
            return 0;
        }
        return ((Integer) ˎ.get(str)).intValue();
    }

    public int ॱ() {
        for (Entry entry : ˋ.entrySet()) {
            if (((Boolean) entry.getValue()).booleanValue()) {
                return ˋ((String) entry.getKey());
            }
        }
        return 0;
    }
}
